Skip to content

Instantly share code, notes, and snippets.

@sloria
sloria / bobp-python.md
Last active May 12, 2024 06:54
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@vladstudio
vladstudio / apply.css
Last active May 12, 2024 06:53
silverbullet.md Tiniri theme
/* more Tiniri themes: https://tiniri.vlad.studio/ */
html {
--ui-font: ui-sans-serif, sans-serif !important;
--editor-font: ui-sans-serif, sans-serif !important;
--editor-width: 800px !important;
line-height: 1.5 !important;
}
html {
@akitaonrails
akitaonrails / links.md
Created November 6, 2019 01:28
Links de referência pro Episódio 66 do Canal Akitando
@dlevi309
dlevi309 / profile_defaults.md
Last active May 12, 2024 06:48
An extensive list of settings written when installing a debugging profile from developer.apple.com

Digital Car Key:

Has three sections.

defaults: {
    “com.apple.MobileBluetooth.debug” =     {
        ExtraZoningLog =         {
            EnableZoneLogging = 1;
        };
        FWStreamLogging =         {
@MrityunjaiKumar
MrityunjaiKumar / otaWebserver.ino
Created January 12, 2019 21:02
esp8266 ota web server page
/*
To upload through terminal you can use: curl -F "image=@firmware.bin" esp8266-webupdate.local/update
*/
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
#ifndef STASSID
@fnky
fnky / ANSI.md
Last active May 12, 2024 06:46
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@jjsquady
jjsquady / nextjs-deploy.md
Last active May 12, 2024 06:44
Deploying NEXTJS site with nginx + pm2

How to setup next.js app on nginx with letsencrypt

next.js, nginx, reverse-proxy, ssl

1. Install nginx and letsencrypt

$ sudo apt-get update
$ sudo apt-get install nginx letsencrypt

Also enable nginx in ufw

:: Save this as SteamTrackingFix.bat and place it in your Godot folder.
:: The name doesn't really matter, but you may need to enable viewing file extensions in Windows to save it as a batch file.
:: Run this again if Godot updates and steam tracking stops working.
@echo off
echo -----
echo Don't forget to add '/K godot.exe' to your Steam Godot Launch Options!
echo -----
:: BatchGotAdmin
:-------------------------------------
@marslo
marslo / Makefile.patch
Last active May 12, 2024 06:40
patch for build lua v5.4.6 as a shared library (liblua.so)
--- Makefile 2024-01-04 18:12:26.836000000 -0800
+++ Makefile.patched 2024-01-04 18:14:09.840000000 -0800
@@ -38,21 +38,21 @@
# Convenience platforms targets.
PLATS= guess aix bsd c89 freebsd generic ios linux linux-readline macosx mingw posix solaris
+# Lua version and release.
+V= 5.4
+R= $V.6
+
@codorizzi
codorizzi / HorizontalOrVerticalLayoutGroupEditor.cs
Last active May 12, 2024 06:40
Unity - Smooth Layout Group (using DoTween)
using UnityEditor;
using UnityEngine;
namespace Utility.SLayout {
[CustomEditor(typeof(SHorizontalOrVerticalLayoutGroup), true)]
[CanEditMultipleObjects]
/// <summary>
/// Custom Editor for the HorizontalOrVerticalLayoutGroupEditor Component.
/// Extend this class to write a custom editor for a component derived from HorizontalOrVerticalLayoutGroupEditor.
/// </summary>